package org.microframework.base.core.datasource.annotation;

import org.microframework.base.core.datasource.MicroDataSourceAutoConfiguration;
import org.springframework.context.annotation.Import;
import java.lang.annotation.*;

/**
 * 启用微服务数据源模块
 * 
 * <p>在Spring Boot应用的主配置类上添加此注解以启用JFinal ActiveRecord和数据源配置</p>
 * <p>示例：</p>
 * <pre>
 * \@SpringBootApplication
 * \@EnableMicroDataSource
 * public class Application {
 *     public static void main(String[] args) {
 *         SpringApplication.run(Application.class, args);
 *     }
 * }
 * </pre>
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Import(MicroDataSourceAutoConfiguration.class)
public @interface EnableMicroDataSource {
} 